package com.ruoyi.list.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 医院设备清单对象 hospital_device_list
 *
 * @author zjt
 * @date 2025-01-15
 */
public class HospitalDeviceList extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 清单号
     */
    @Excel(name = "清单号")
    private Integer listId;

    /**
     * 医院编号
     */
    @Excel(name = "医院编号")
    private String hospitalId;

    /**
     * 设备号
     */
    @Excel(name = "设备号")
    private String deviceId;

    /**
     * 设备数量
     */
    @Excel(name = "设备数量")
    private String quantity;

    /**
     * 设备在医院的安装时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备在医院的安装时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installationDate;

    public Integer getListId() {
        return listId;
    }

    public void setListId(Integer listId) {
        this.listId = listId;
    }

    public String getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public Date getInstallationDate() {
        return installationDate;
    }

    public void setInstallationDate(Date installationDate) {
        this.installationDate = installationDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("listId", getListId())
                .append("hospitalId", getHospitalId())
                .append("deviceId", getDeviceId())
                .append("quantity", getQuantity())
                .append("installationDate", getInstallationDate())
                .toString();
    }
}
